home *** CD-ROM | disk | FTP | other *** search
-
- function PipeManager:OnInitTony()
- System:Log("INITTonyCALLED");
-
-
-
- -- AI:CreateGoalPipe("patrol_fort");
- -- AI:PushGoal("patrol_fort","locate",0,"corner1");
- -- AI:PushGoal("patrol_fort","ignoreall",0,1);
- -- AI:PushGoal("patrol_fort","acqtarget",1,"");
- -- AI:PushGoal("patrol_fort","approach",1,2);
- -- AI:PushGoal("patrol_fort","ignoreall",0,0);
- -- AI:PushGoal("patrol_fort","timeout",1,2);
- -- AI:PushGoal("patrol_fort","bodypos",1,0);
- -- AI:PushGoal("patrol_fort","ignoreall",0,1);
- -- AI:PushGoal("patrol_fort","locate",0,"corner2");
- -- AI:PushGoal("patrol_fort","ignoreall",0,1);
- -- AI:PushGoal("patrol_fort","acqtarget",1,"");
- -- AI:PushGoal("patrol_fort","approach",1,2);
- -- AI:PushGoal("patrol_fort","ignoreall",0,0);
- -- AI:PushGoal("patrol_fort","timeout",1,2);
- -- AI:PushGoal("patrol_fort","bodypos",1,0);
- -- AI:PushGoal("patrol_fort","ignoreall",0,1);
- -- AI:PushGoal("patrol_fort","locate",0,"corner3");
- -- AI:PushGoal("patrol_fort","ignoreall",0,1);
- -- AI:PushGoal("patrol_fort","acqtarget",1,"");
- -- AI:PushGoal("patrol_fort","approach",1,2);
- -- AI:PushGoal("patrol_fort","ignoreall",0,0);
- -- AI:PushGoal("patrol_fort","timeout",1,2);
- -- AI:PushGoal("patrol_fort","bodypos",1,0);
- -- AI:PushGoal("patrol_fort","ignoreall",0,1);
- -- AI:PushGoal("patrol_fort","locate",0,"corner2");
- -- AI:PushGoal("patrol_fort","ignoreall",0,1);
- -- AI:PushGoal("patrol_fort","acqtarget",1,"");
- -- AI:PushGoal("patrol_fort","approach",1,2);
- -- AI:PushGoal("patrol_fort","ignoreall",0,0);
- -- AI:PushGoal("patrol_fort","timeout",1,2);
- -- AI:PushGoal("patrol_fort","bodypos",1,0);
- -- AI:PushGoal("patrol_fort","ignoreall",0,1);
- -- AI:PushGoal("patrol_fort","locate",0,"corner1");
- -- AI:PushGoal("patrol_fort","ignoreall",0,1);
- -- AI:PushGoal("patrol_fort","acqtarget",1,"");
- -- AI:PushGoal("patrol_fort","approach",1,1);
- -- AI:PushGoal("patrol_fort","ignoreall",0,0);
- -- AI:PushGoal("patrol_fort","timeout",1,2);
- -- AI:PushGoal("patrol_fort","bodypos",1,0);
- -- AI:PushGoal("patrol_fort","ignoreall",0,1);
- -- AI:PushGoal("patrol_fort","locate",0,"firepoint");
- -- AI:PushGoal("patrol_fort","acqtarget",1,"");
- -- AI:PushGoal("patrol_fort","approach",1,2);
- -- AI:PushGoal("patrol_fort","ignoreall",0,0);
- -- AI:PushGoal("patrol_fort","timeout",1,5);
-
-
- -- Tony sees the player and attacks from a good position - on top of the fort, ducking sometimes.
-
- AI:CreateGoalPipe("defend_fort");
- AI:PushGoal("defend_fort","locate",0,"firepoint");
- AI:PushGoal("defend_fort","ignoreall",0,1);
- AI:PushGoal("defend_fort","acqtarget",1,"");
- AI:PushGoal("defend_fort","run",0,1);
- AI:PushGoal("defend_fort","stick",0,0.5);
- AI:PushGoal("defend_fort","close_attack"); -- switch pipes
- AI:PushGoal("defend_fort","timeout",1,5);
-
-
- -- Ernie patrols outside the fort, follows erniespath
-
- -- AI:CreateGoalPipe("patrol_outside_fort");
- -- AI:PushGoal("patrol_outside_fort","pathfind",1,entity.Properties.pathname);
- -- AI:PushGoal("patrol_outside_fort","trace",1,1);
- -- AI:PushGoal("patrol_outside_fort","timeout",1,2);
-
- -- Al patrols outside the fort, follows AlsPath
-
- AI:CreateGoalPipe("patrol_outside_fort_Al");
- AI:PushGoal("patrol_outside_fort_Al","pathfind",1,"AlsPath");
- AI:PushGoal("patrol_outside_fort_Al","trace",1,1);
-
-
-
- -- Bert reinforces (goes to rally point then attacks)
-
- AI:CreateGoalPipe("get_to_rally");
- AI:PushGoal("get_to_rally","run",0,1);
- AI:PushGoal("get_to_rally","locate",0,"rally");
- AI:PushGoal("get_to_rally","ignoreall",0,1);
- AI:PushGoal("get_to_rally","acqtarget",1,"");
- AI:PushGoal("get_to_rally","approach",1,2);
- AI:PushGoal("get_to_rally","ignoreall",0,1);
-
- -- close rocket_attack
- AI:CreateGoalPipe("rocket_attack");
- -- AI:PushGoal("close_attack","ignoreall",0,1);
- -- AI:PushGoal("close_attack","acqtarget",0,"");
- -- AI:PushGoal("rocket_attack","bodypos",1,1);
- AI:PushGoal("rocket_attack","firecmd",0,1);
- -- AI:PushGoal("rocket_attack","bodypos",0,0);
- AI:PushGoal("rocket_attack","run",0,1);
- AI:PushGoal("rocket_attack","approach",1,25);
- AI:PushGoal("rocket_attack","strafe",0,-1);
- AI:PushGoal("rocket_attack","timeout",1,1);
- AI:PushGoal("rocket_attack","strafe",0,0);
- -- AI:PushGoal("close_attack","backoff",1,12);
- AI:PushGoal("rocket_attack","strafe",0,1);
- AI:PushGoal("rocket_attack","timeout",1,2);
- AI:PushGoal("rocket_attack","strafe",0,0);
- AI:PushGoal("rocket_attack","run",0,0);
-
-
-
-
- end
-
-